import request from '@/utils/request.js'

// 接口名称: 需求信息详情
export function getNoticedetailData (id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/Transaction/noticedetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 需求计划详情
// 请求方法: GET
// 接口地址: index.php/api/Plan/progamedetail
export function progamedetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/Plan/progamedetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 合同详情
// 请求方法: GET
// 接口地址: /index.php/api/Contract/contractdetail
export function contractdetail(id) {
  const data = {
    id
  };
  return request({
    url: '/index.php/api/Contract/contractdetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 到货单详情
// 请求方法: GET
// 接口地址: index.php/api/supplypurchase/addarrivalorderdetail
export function addarrivalorderdetail (id) {
  const data = {
    id
  };
  return request({
    url: '/index.php/api/supplypurchase/addarrivalorderdetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 待检单详情
// 请求方法: GET
// 接口地址: index.php/api/supplypurchase/addwaitingareadetail
export function addwaitingareadetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/supplypurchase/addwaitingareadetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 质检单详情
// 请求方法: GET
// 接口地址: index.php/api/supplypurchase/qualityinspectiondetail
export function qualityinspectiondetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/supplypurchase/qualityinspectiondetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 退货详情
// 请求方法: GET
// 接口地址: index.php/api/supplypurchase/addreturnslipdetail
export function addreturnslipdetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/supplypurchase/addreturnslipdetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 盘点详情
// 请求方法: GET
// 接口地址: index.php/api/Inventorywh/inventorydetail
export function inventorydetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/Inventorywh/inventorydetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 调拨详情
// 请求方法: GET
// 接口地址: index.php/api/Allocations/allocationsdetail
export function allocationsdetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/Allocations/allocationsdetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 入库详情
// 请求方法: GET
// 接口地址: index.php/api/Putinhouse/warehousindetail
export function warehousindetail(id) {
  const data = {
    id
  };
  return request({
    url: 'index.php/api/Putinhouse/warehousindetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 供应商详情
// 请求方法: GET
// 接口地址: index.php/api/index/venderdetail
export function venderdetail(id) {
  const data = {
   id
  }
  return request({
    url: 'index.php/api/index/venderdetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 供应商详情
// 请求方法: GET
// index.php/api/information/publicityDetail
export function publicityDetail(id) {
  const data = {
    id
  }
  return request({
    url: 'api/information/detail',
    params: data,
    methods: 'get'
  })
}

// 物料详情
export function incentorydetail(id) {
  const data = {
    id
  }
  return request({
    url: 'api/inventory/incentorydetail',
    params: data,
    methods: 'get'
  })
}

// 项目信息详情
export function index_projectInfo(id) {
  const data = {id};
  return request({
    url: 'index.php/api/project/projectInfo',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 采购计划详情
// 请求方法: GET
// index.php/api/plan/procurementdetails
export function plan_procurementdetails(id) {
  const data = {id};
  return request({
    url: 'index.php/api/plan/procurementdetails',
    params: data,
    methods: 'get'
  })
}


// 接口名称: 采购方案详情
// 请求方法: GET
// 接口地址: index.php/api/Plan/schemedetails
export function plan_schemedetails(id) {
  const data = {id};
  return request({
    url: 'index.php/api/Plan/schemedetails',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 出库详情
// 请求方法: GET
// 接口地址: index.php/api/Putinhouse/outstockdetail
export function Putinhouse_outstockdetail(id) {
  const data = {id};
  return request({
    url: 'index.php/api/Putinhouse/outstockdetail',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 仓库详情
// 请求方法: GET
// 接口地址: index.php/api/Warehouse/showStock
export function warehouse_showStock(id) {
  const data = {id};
  return request({
    url: 'index.php/api/Warehouse/showStock',
    params: data,
    methods: 'get'
  })
}

// 接口名称: 查看预审文件
// 接口地址: index.php/api/Transaction/reviewlist
// 请求方法: GET
export function transaction_reviewlist(id) {
  const data = {id};
  return request({
    url: 'index.php/api/Transaction/reviewlist',
    methods: 'get',
    params: data
  })
}

// 接口名称: 设备管理详情
// 请求方法: GET
// 接口地址: index.php/api/device/Devicedetail
export function device_Devicedetail(id) {
  const data = {id};
  return request({
    url: 'index.php/api/device/Devicedetail',
    methods: 'get',
    params: data
  })
}

// 接口名称: 匹配采购查看详情
// 请求方法: GET
// 接口地址: 接口地址: index.php/api/Matchingpurchase/Realredetails
export function Transaction_reviewlist(rid) {
  const data = {rid};
  return request({
    url: 'index.php/api/Matchingpurchase/Realredetails',
    method:'get',
    params: data
  })
}

// 接口名称: 查看供应商参与报价详情
// 请求方法: GET
// 接口地址: index.php/api/Matchingpurchase/readvenderdetails
export function Matchingpurchase_readvenderdetails(rid) {
  const data = {rid};
  return request({
    url: 'index.php/api/Matchingpurchase/readvenderdetails',
    method:'get',
    params: data
  })
}
